package com.dream.essearch.model.dto;

import com.dream.essearch.model.entity.BookDoc;
import lombok.Data;

import java.util.List;

@Data
public class PageResult {
    private Long total;
    private List<BookDoc> books;

    public PageResult() {
    }

    public PageResult(Long total, List<BookDoc> books) {
        this.total = total;
        this.books = books;
    }
}
